package com.douqu.game.core.e;

/**
 * @author: miracle.
 * Description:
 * Date: 2018/6/20 0020 下午 12:16
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public enum E_InitDataType implements BaseEnum{

    ASSETS(1,"初始资源"),
    PROPS(2,"初始道具"),
    CARDS(3,"初始卡牌"),
    TIMEPROPS(4,"限时道具")
    ;

    int code;

    String msg;

    E_InitDataType(int code,String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public static E_InitDataType getValue(int value){
        for (E_InitDataType dataType:values()){
            if (dataType.getCode() == value){
                return dataType;
            }
        }
        return null;
    }
}
